package com.hmall.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.hmall.user.mapper.AddressMapper;
import com.hmall.user.pojo.Address;
import com.hmall.user.service.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddressService extends ServiceImpl<AddressMapper, Address> implements IAddressService {

//    @Autowired
//    private AddressMapper addressMapper;
//
//    @Autowired
//    private ObjectMapper objectMapper;
//    /**
//     * 查询用户地址信息
//     * @param userId
//     * @return
//     */
//    @Override
//    public List<Address> selectAddress(Long userId) {
//        Address address = addressMapper.selectById(userId);
//        JSON
//        return null;
//    }
}